package com.dwxt.cdms.dao;

import com.dwxt.cdms.entity.HealthSummary;
import com.dwxt.cdms.entity.HealthSummaryExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface HealthSummaryMapper {
    long countByExample(HealthSummaryExample example);

    int deleteByExample(HealthSummaryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(HealthSummary record);

    int insertSelective(HealthSummary record);

    List<HealthSummary> selectByExampleWithBLOBs(HealthSummaryExample example);

    List<HealthSummary> selectByExample(HealthSummaryExample example);

    HealthSummary selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") HealthSummary record, @Param("example") HealthSummaryExample example);

    int updateByExampleWithBLOBs(@Param("record") HealthSummary record, @Param("example") HealthSummaryExample example);

    int updateByExample(@Param("record") HealthSummary record, @Param("example") HealthSummaryExample example);

    int updateByPrimaryKeySelective(HealthSummary record);

    int updateByPrimaryKeyWithBLOBs(HealthSummary record);

    int updateByPrimaryKey(HealthSummary record);

    HealthSummary selectLastRecord(Integer customerId);

    List<Map> selectHealthRecordPage(Integer customerId);
}